﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris
{
   public class ChangePosition
    {
      static int changePos = 0;
       public void Change()
       {
            if (Console.KeyAvailable == true)
            {
                var key = Console.ReadKey().Key;
               // changePos;
               // Console.Write(changePos);
                if (key == ConsoleKey.A)
                {
                    ++changePos;
                    switch (changePos)
                    {
                        case 1:
                            Console.Write(changePos);
                           
                            break;
                        case 2:
                            Console.Write(changePos);
                            
                            break;
                        case 3:
                            Console.Write(changePos);
                        
                            break;
                        case 4:
                            Console.Write(changePos);
                           changePos = 0;
                            break;
                    }
                  
                }
            }
       }
    }
}
